home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / gnuplot / makefile.os2 < prev    next >
Makefile  |  1993-09-15  |  2KB  |  105 lines

  1. #
  2. # $Id: makefile.os2%v 3.50 1993/07/09 05:35:24 woo Exp $
  3. #
  4. # Make file for use with emx 0.8e (gcc2.2.2) and nmake
  5. # for compiling for OS/2 2.0
  6. # usage: nmake  OR dmake -r  -B
  7. # (file has blanks instead of real tabs, doesn't use dmake.ini)
  8.  
  9. # where to place gnuplot.gih helpfile
  10. HELPFILE = gnuplot.gih
  11.  
  12. CFLAGS = -c -O2 -DOS2 -DGETCWD -DREADLINE -DPIPES
  13.  
  14. # see other terminal defines in term.h
  15. TERMFLAGS = 
  16.  
  17.  
  18. OBJS =     bitmap.o command.o contour.o eval.o graphics.o graph3d.o \
  19.     help.o internal.o misc.o parse.o plot.o readline.o specfun.o \
  20.     scanner.o setshow.o standard.o term.o util.o version.o \
  21.         binary.o gnubin.o
  22.  
  23. CSOURCE5 = term\aed.trm term\cgi.trm term/dumb.trm term/dxf.trm term\dxy.trm \
  24.     term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  25.     term\hp2648.trm term\hpgl.trm term\hpljii.trm 
  26. CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
  27.     term\iris4d.trm term\kyo.trm term\latex.trm term/pbm.trm term\pm.trm 
  28. CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  29.     term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  30.     term\v384.trm term\x11.trm
  31. CSOURCE8 = contour.c
  32.  
  33. # default rules
  34. .c.o:
  35.     gcc $(CFLAGS) -o $*.o $*.c
  36.  
  37. gnuplot.exe: $(OBJS)
  38.         gcc -o gnuplot.exe $(OBJS) -los2
  39.  
  40.  
  41. bitmap.o: bitmap.c bitmap.h plot.h
  42.  
  43. binary.o: binary.c plot.h
  44.  
  45. gnubin.o: gnubin.c plot.h
  46.  
  47. command.o: command.c plot.h setshow.h help.h
  48.  
  49. contour.o: contour.c plot.h
  50.  
  51. eval.o: eval.c plot.h
  52.  
  53. graphics.o: graphics.c plot.h setshow.h
  54.  
  55. graph3d.o: graph3d.c plot.h setshow.h
  56.  
  57. help.o: help.c plot.h help.h
  58.  
  59. internal.o: internal.c plot.h
  60.  
  61. misc.o: misc.c plot.h setshow.h
  62.  
  63. parse.o: parse.c plot.h
  64.  
  65. plot.o: plot.c plot.h setshow.h
  66.  
  67. readline.o: readline.c
  68.  
  69. scanner.o: scanner.c plot.h
  70.  
  71. setshow.o: setshow.c plot.h setshow.h
  72.  
  73. specfun.o: specfun.c plot.h
  74.  
  75. standard.o: standard.c plot.h
  76.  
  77. term.o: term.c term.h plot.h setshow.h bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  78.     gcc $(CFLAGS) $(TERMFLAGS) -Iterm -o term.o term.c
  79.  
  80. util.o: util.c plot.h
  81.  
  82. version.o: version.c
  83.  
  84. all: gnuplot.exe $(HELPFILE)
  85.  
  86. # convert gnuplot.doc to gnuplot.gih
  87. doc2gih.exe: docs\doc2gih.c
  88.     gcc -o doc2gih.exe  docs/doc2gih.c
  89.  
  90. $(HELPFILE): doc2gih.exe docs\gnuplot.doc
  91.     doc2gih docs\gnuplot.doc $(HELPFILE)
  92.  
  93. clean:
  94.     del *.o
  95.  
  96. # realclean target - remove all files created by the makefile
  97.  
  98. realclean: clean
  99.     del gnuplot.exe
  100.     del doc2gih.exe
  101.     del gnuplot.gih
  102.  
  103.  
  104.